﻿//----------------------------------------------------------------
// Desc: 
// Edit: ShowLong, http://blog.csdn.net/showlong
//
// Date Created: 2012-04-13
//
// Update Date : 
//
// Copyright (c) Fuel4D (http://www.fuel4d.com), All rights reserved.
//
//----------------------------------------------------------------
#pragma once


class IFEntityObject : public IFNodeObject
{
protected:
    explicit IFEntityObject()
        :vPosition(0,0,0)
        ,fScale(1)
        ,fRotate(0)
    {}

public:
    // 设置坐标
    FINLINE void SetPosition(const FVECTOR3* p)
    {
        vPosition.x = p->x;
        vPosition.y = p->y;
        vPosition.z = p->z;
    }
    // 获取坐标
    FINLINE const FVECTOR3* const GetPosition()
    {
        return &vPosition;
    }
    // 设置缩放
    FINLINE void SetScale(float s)
    {
        fScale = s;
    }
    // 获取缩放
    FINLINE float GetScale()
    {
        return fScale;
    }
    // 设置旋转
    FINLINE void SetRotate(float r)
    {
        fRotate = r;
    }
    // 获取旋转
    FINLINE float GetRotate()
    {
        return fRotate;
    }

protected:
    FVECTOR3 vPosition;         // 坐标值
    float fScale;               // 缩放值
    float fRotate;              // 旋转值
};